package xyz.weizhi.tanhua.dubbo.api;

import xyz.weizhi.tanhua.model.domain.User;

/**
 * @Author milian
 * @Date 2021/10/21 0021 20:06
 */
public interface UserApi {
     /**
      * @Author milian
      * @Description //TODO 根据用户电话查询用户信息
      * @Date 20:14 2021/10/21 0021
      * @Param [phone]
      * @return xyz.weizhi.tanhua.model.domain.User
      **/
     User findUserByPhone(String phone);
     /**
      * @Author milian
      * @Description //TODO 保存用户
      * @Date 21:08 2021/10/21 0021
      * @Param [user]
      * @return java.lang.Long
      **/
     Long save(User user);

     void updatePhone(Long userId,String newPhone);
}
